$(function(){
	
	var userChartSet={
			chart: {
				renderTo: 'container', 
	            type: 'line'                         
	        },
	        title: {
	            text: '关注走势'     
	        },
	        xAxis: {
	            categories: []   
	        },
	        yAxis: {
	            title: {
	                text: '人数'                  
	            }
	        },
	        series: [{                                 
	            name: '每月关注',                          
	            data: []                        
	        }]
	};
	
	var url="../analysis/user/month/count";
	 $.getJSON(url,function(data) { 
         var i,len=data.length;
         var listUserNum=new Array();
          for( i=0;i<len;i++){
        	  var userNumObj=data[i];
        	  listUserNum.push(userNumObj.num);
        	  userChartSet.xAxis.categories[i]=userNumObj.anMonth;
          }   
          userChartSet.series[0].data = listUserNum;
          var chart = new Highcharts.Chart(userChartSet);
	 });
	
});